﻿@model IEnumerable<INSE6260.OnlineBanking.Model.Payee.Payee>
@{
    ViewBag.Title = "Manage Payee";
}
<h2>Manage Payee</h2>
<p>
    @Html.ActionLink("Create New Payee", "Create")
</p>
<table>
    <tr>
        <th>
            Payee Name
        </th>
        <th>
            Nick Name
        </th>
        <th>
            Account No
        </th>
        <th>
        </th>
    </tr>
    @foreach (var item in Model)
    {
        <tr>
            <td>
                @Html.DisplayFor(modelItem => item.PayeeName.Name)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.NickName)
            </td>
            <td>
                @Html.DisplayFor(modelItem => item.AccountNo)
            </td>
            <td>
                @Html.ActionLink("Edit", "Edit", new { id = item.Id }) |
                @Html.ActionLink("Delete", "Delete", new { id = item.Id })
            </td>
        </tr>
    }
</table>
